import request from "@/utils/request";

//请款列表
export const requestsFundsList = data => {
  return request({
    url: "/crm/fund_application",
    method: "post",
    data
  });
};
//收款人列表
export const payeeList = data => {
  return request({
    url: "/crm/fund_application/payee_list",
    method: "post",
    data
  });
};
//创建人列表
export const creatorList = data => {
  return request({
    url: "/crm/fund_application/creator_list",
    method: "post",
    data
  });
};
//发起审批+作废+撤回审批按钮操作
export const requestFundsOperate = data => {
  return request({
    url: "/crm/fund_application/operation",
    method: "post",
    data
  });
};
//发起付款
export const requestPayment = data => {
  return request({
    url: "/crm/fund_application/request_payment",
    method: "post",
    data
  });
};
//费用请款详情
export const requestFundsDetail = data => {
  return request({
    url: "/crm/fund_application/detail",
    method: "post",
    data
  });
};
//导出
export const exportRecord = data => {
  return request({
    url: "/crm/fund_application/download",
    method: "post",
    responseType: "blob",
    data
  });
};
